<template>
  <div>
    <questions v-for="(v,id) in list" :key='id' :questions='v' :page="page" :help_type_id="help_type_id"></questions>
    <pageBottom :tel="tel" :time="time"></pageBottom>
  </div>

</template>

<script>
import questions from "../components/logisticsProblem/questions.vue";
import pageBottom from "../components/help_server/pageBottom.vue";
import request from "@/request/index.js"
export default {
  name: "logisticsProblem",
  components: {
    questions,
    pageBottom
  },
  data() {
    return {
      list: [],
      tel: "",
      time: "",
      page: 1,
      help_type_id: ""
    };
  },
  methods: {
    getLogin: function() {
      var time = Date.parse(new Date()) / 1000;
      if (this._globe.isAndroid) {
        if (window.android != null && typeof window.android != "undefined") {
          window.android.callLogin();
        } else {
          this.$router.push({
            path:'/login',
          })
        }
      }
      if (this._globe.isIos) {
        if (window.webkit) {
          window.webkit.messageHandlers.callAppHelp.postMessage(num);
        }else{
          this.$router.push({
            path:'/login',
          })
        }
      }
    }
  },
  mounted() {
    this.help_type_id = this.$route.query.help_type_id;
    request.getHelpInfo(this)
    
    if (this.$route.query.page) {
      this.page = this.$route.query.page;
    }
    
     
  }
};
</script>

<style lang="scss">
</style>
